package com.bookcity.front.webfront.service.impl;

import com.bookcity.front.webfront.domain.Bincome;
import com.bookcity.front.webfront.mapper.BincomeMapper;
import com.bookcity.front.webfront.service.IBincomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 收益Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-05-09
 */
@Service
public class BincomeServiceImpl implements IBincomeService 
{
    @Autowired
    private BincomeMapper bincomeMapper;

    /**
     * 查询收益
     * 
     * @param id 收益主键
     * @return 收益
     */
    @Override
    public Bincome selectBincomeById(Long id)
    {
        return bincomeMapper.selectBincomeById(id);
    }

    /**
     * 查询收益列表
     * 
     * @param bincome 收益
     * @return 收益
     */
    @Override
    public List<Bincome> selectBincomeList(Bincome bincome)
    {
        return bincomeMapper.selectBincomeList(bincome);
    }

    /**
     * 新增收益
     * 
     * @param bincome 收益
     * @return 结果
     */
    @Override
    public int insertBincome(Bincome bincome)
    {
        return bincomeMapper.insertBincome(bincome);
    }

    /**
     * 修改收益
     * 
     * @param bincome 收益
     * @return 结果
     */
    @Override
    public int updateBincome(Bincome bincome)
    {
        return bincomeMapper.updateBincome(bincome);
    }

    /**
     * 批量删除收益
     * 
     * @param ids 需要删除的收益主键
     * @return 结果
     */
    @Override
    public int deleteBincomeByIds(Long[] ids)
    {
        return bincomeMapper.deleteBincomeByIds(ids);
    }

    /**
     * 删除收益信息
     * 
     * @param id 收益主键
     * @return 结果
     */
    @Override
    public int deleteBincomeById(Long id)
    {
        return bincomeMapper.deleteBincomeById(id);
    }
}
